import 'package:flutter/cupertino.dart';

import 'package:flutter/material.dart';

class SingleChildScrollViewTestRoute extends StatelessWidget{

@override
  Widget build(BuildContext context) {
    String str="ABCDEFGHIJKLMNOPQRSTUVWXYZ";

    return Scrollbar(//显示进度条
      child: SingleChildScrollView(
      padding:EdgeInsets.all(16.0),
      child:Center(
        child: Column(
          children:str.split("")
          //每一个字母都用一个Text显示，字体为原来的2倍
          .map((c) => Text(c,textScaleFactor:2.0)).toList()
        ),
      )
    ));
    
  }
}